package com.sf.dlb.mongo.repository;

import com.sf.dlb.mongo.model.NewInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * 新闻内容表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface NewInfoRepository extends MongoRepository<NewInfo, String> {
    /**
     * 根据ID-查询
     * @param id
     * @param delFlag
     * @return
     */
    NewInfo findByIdAndDelFlag(String id, String delFlag);
}